<!-- inc:inc.head -->
<!-- inc:inc.bigad -->
<div id="bd">
    <div id="toolbar" class="clearfix">
    	<div id="md_sitemap">
    	    <a href="home.php">Home</a>>
    	    <!-- $lead_menu AS $key=>$value -->
    	    <a href="{:$value[url]}">{:$value[name]}</a>>
    	    <!-- end -->
    	</div>
    	<!-- inc:inc.search -->
    </div>
    
    <div id="newslistwrap">
        <div id="md_topnews" class="clearfix">
            <?php 
            $topnews = $msglist[0];
            $rsc = $DB->qgGetOne("SELECT * FROM ".$prefix."msg_content WHERE id='".$topnews[id]."'");
            $rsi = $DB->qgGetOne("SELECT * FROM ".$prefix."upfiles WHERE id='".$topnews[thumb]."'");
            $content = $topnews["ext_docket"]==""?$rsc["content"]:$topnews["ext_docket"];
            ?>
            <div class="pic">
                <a href="msg.php?id={:$topnews[id]}">
                    <img src="<?php if(isset($rsi[folder])){echo $rsi[folder].$rsi[filename];}else{echo 'images/nopicture_320_240.gif';}?>" />
                </a>
            </div>
            <div class="info">
                <h3><a href="msg.php?id={:$topnews[id]}">{:$topnews[subject]}</a></h3>
                <div class="ct"><?php echo $content;?></div>
            </div>
        </div>
        
        <div id="md_newslist">
            <ul class="clearfix">
            <!-- $msglist AS $key=>$value -->
                <li><a href="msg.php?id={:$value[id]}" title="{:$value[subject]}" >{:$value[cut_subject]}</a></li>
            <!-- end -->
            </ul>
            <div class="pager">{:$pagelist}</div>
        </div>
    </div>
    
</div>

<!-- inc:inc.foot -->